package com.easylinkin.linkappapi.grid.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 网格用户表
 *
 * @author 
 * @since 2024-05-15
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("grid_user")
public class GridUser implements Serializable{
    private static final long serialVersionUID=1L;

    @TableId(type = IdType.AUTO)
    @TableField(value = "id")
    private Integer id;

    /**
     * 网格id
     */
    @TableField(value = "grid_id")
    private Integer gridId;

    /**
     * 角色名称
     */
    @TableField(value = "grid_role_name")
    private String gridRoleName;

    /**
     * 用户id
     */
    @TableField(value = "user_id",updateStrategy = FieldStrategy.IGNORED)
    private String userId;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private String tenantId;


}
